package com.zelix;

import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.util.EventObject;
import javax.swing.JList;

final class d extends KeyAdapter {

    private final h2 a;

    d(h2 h2_1) {
        a = h2_1;
    }

    public void keyPressed(KeyEvent keyevent) {
        label0:
        {
            boolean flag = tb.b;
            Object obj = keyevent.getSource();
            if (keyevent.getKeyCode() == 10) {
                if (obj == a.y) {
                    a.f();
                } else if (obj == a.z) {
                    a.o();
                } else if (obj == a.B) {
                    cz cz1 = (cz) a.B.getSelectedValue();
                    if (cz1.b())
                        break label0;
                    a.o();
                } else if (obj != a.A)
                    break label0;
                a.k();
            } else if (keyevent.getKeyCode() != 127)
                break label0;
            if (obj == a.B) {
                cz cz2 = (cz) a.B.getSelectedValue();
                if (cz2.b())
                    break label0;
                a.k();
            } else if (obj == a.A)
                a.k();
        }
    }
}